package com.asen.commons.core.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Locale;

/**
 * 基础DO类
 *
 * @author Gary
 * @version 1.0
 * @date 2018-11-12
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public abstract class Generic extends CoreBase {

    private static final long serialVersionUID = 2370184166771249318L;

    public Generic(Long id) {
        super(id);
    }

    @ApiModelProperty(value = "创建人id", position = 991)
    private Long createById;

    @ApiModelProperty(value = "创建人", position = 992)
    private String createByName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", position = 993, example = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "修改人id", position = 994)
    private Long updateById;

    @ApiModelProperty(value = "修改人", position = 995)
    private String updateByName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间", position = 996, example = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
